/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class RoboticVacuumandMopCombo {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010040033';
    }

    get categoryName() {
        return '\u626b\u62d6\u4e00\u4f53\u673a';
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pGoxsTAS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getStatus(params) {
        return command({
            method: 'getStatus',
            methodId: 'pDrhJ2s3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'p1vFcJ6V',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'peH3AZlr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'ppAXwLId',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'pZgR0VVL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pUPQ5SkZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default RoboticVacuumandMopCombo;
